package com.abel.tactics;

import com.abel.factory.Factory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 策略1
 *
 * @author heyangyang
 * @since 2024-05-15
 */
@Component
@Slf4j
public class WoNiuHandler implements Handler {
    @Override
    public void AA(String nikeName) {
        log.info("我是蜗牛");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        Factory.registerStrategy("aa", this);
    }
}
